﻿using LoginUI.UI;
using UnityEngine.UI;

namespace LoginUI.Tip
{
    public class TipPanel: BasePanel
    {
        //确定按钮
        public Button btnSure;

        //提示文字
        public Text txtInfo;
        public override void Init()
        {
            btnSure.onClick.AddListener(() =>
            {
                UIManager.Instance.HidePanel<TipPanel>();
            });
        }
        public void ChangeInfo(string info) {
            txtInfo.text = info;
        }
    }
}